home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 November
/
Chip_2004-11_cd1.bin
/
zkuste
/
dolby
/
download
/
dvdlab
/
DVDlabProRC2b.exe
/
{app}
/
Extras
/
Script
/
Infinity.talk
< prev
next >
Wrap
Text File
|
2004-03-22
|
1KB
|
56 lines
/* Link Bitmap 1.0
by Oscar, 12 Dec 2003
To run this: DROP the Script from Assets to the Object in Menu.
Some interesting repeating effect. It grabs the object image, then resize it and overlay it
on the object itself.
Now it repeat this few times in a loop to get the repeating effects.
Note: because of the bitmap merging, the text will become not-editable after you apply this
*/
// Get the current menu and selected object when you drag and drop script
// Note: if testing from Script editor make sure you have just one menu opened on desktop,
// in such case the MenuGetCurSel will return currently opened menu
menu = MenuGetCurSel()
// VTS menu 1..255, VMG menu 10001..10255
// show the current menu on top of all others
MenuActivate(menu)
object= ObjectGetCurSel(menu)
if (object==0) then
print "No object Selected"
end
endif
ObjectMergeShadow(menu,object)
// save original image
ImgGrabObject(2,menu,object)
nW = ImgGetWidth(2)
nH = ImgGetHeight(2)
//**********
// these 2 params can be changed for different effect
stepdown = 30
repeat = 10
step2 = stepdown/2
ProgressBar(0,repeat,"Infiniting ;-)")
for x = 1 to repeat
ProgressSetPos(x)
ImgGrabObject(1,menu,object)
ImgResize(1,nW-stepdown,nH-stepdown)
// copy alpha from original (2) to working buffer (1)
ImgOverlay(1,2,step2,step2)
ImgSetToObject(2,menu,object)
next x